#include <iostream>
extern int hp;
 
void damage(void)
{
  // static int hp = 100;// 局部静态变量
  hp -= 2;
  std::cout << "damage\t" << '\n'
            << "hp:\t" << hp << '\n';
}